package org.zachary.prosocialbehaviorservice.application.command;

import org.zachary.prosocialbehaviorservice.domain.aggregate_model.activity.ActivityItem;

public record ActivityItemDTO(Integer id, String title, String qrCode) {
    public static ActivityItemDTO from(ActivityItem item) {
        return new ActivityItemDTO(item.getId(), item.getTitle(), item.getQrCode());
    }
}